﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wicresoft.UnifyShow.Business
{
    public interface IBusinessSystem
    {
        List<BusinessSystemModel> GetAllBusinessSystem();
        BusinessSystemModel GetBusinessSystemByID(int id);
        BusinessSystemModel GetBusinessSystemBySiteIdAndCName(int siteID, string serviceName);
        List<BusinessSystemModel> GetSiteIDsContainsTheBusinessSystem(string serviceName);
        List<BusinessSystemModel> GetBusinessSystemBySiteIdAndCategory(int siteID, string categoryName);

        int Add(BusinessSystemModel model);
        int AddList(IList<BusinessSystemModel> models);
        void Delete(decimal id);
        int Update(BusinessSystemModel model);
        List<SiteBranchModel> GetExistTheBSSites(string bsName);
        IList<DeviceAndAlertCountModel> GetSiteAlertCountByBSID(int bsID);
    }
}
